<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" method="post">


                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 信用卡图片 </label>
                                <div class="col-sm-9">
                                    <div class="col-xs-10 col-sm-2">{:UpImage("pic_url",100,100,$member['pic_url'])}</div>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB。</span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 图片标题 </label>
                                <div class="col-sm-9">
                                    <input type="hidden" name="id" value="{$member['id']}">
                                    <input type="text" name="title" class="rcol-xs-10 col-sm-5" value="{$member.title}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 图片描述 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="desc" class="rcol-xs-10 col-sm-5" value="{$member.desc}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 选择分类 </label>
                                <div class="col-sm-9">
                                    <select id="category" name="category" class="col-xs-10 col-sm-5 select2">
                                        <foreach item="category" name="category" key="k">
                                            <option value="{$k}" <if condition="$member['category'] eq $k">selected="selected"</if> >{$category}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 选择终端 </label>
                                <div class="col-sm-9">
                                    <select id="platform" name="platform" class="col-xs-10 col-sm-5 select2">
                                        <foreach item="platform" name="platform" key="k">
                                            <option value="{$k}" <if condition="$member['platform'] eq $k">selected="selected"</if> >{$platform}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 图片链接 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="link" class="rcol-xs-10 col-sm-5" value="{$member.link}">
                                </div>
                            </div>

                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
</body>
</html>
